for $b in document("bib.xml")//book[author]
return $b/title,
for $b in document("bib.xml")//book[editor]
return $b/title



